package com.ruoyi.procurement.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 物品出库对象 ps_outbound
 * 
 * @author ruoyi
 * @date 2023-10-10
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel(value = "PsOutbound", description = "出库实体")
public class PsOutbound extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 出库单位 */
    @Excel(name = "出库单位")
    @ApiModelProperty("出库单位")
    private String psUnitId;

    /** 出库数量 */
    @Excel(name = "出库数量")
    @ApiModelProperty("出库数量")
    private BigDecimal poNum;
    @Excel(name = "出库金额")
    @ApiModelProperty("出库金额")
    private BigDecimal poAmount;

    /** 数量单位 */
    @Excel(name = "数量单位")
    @ApiModelProperty("数量单位")
    private String poUnit;

    /** 单价 */
    @Excel(name = "单价")
    @ApiModelProperty("单价")
    private BigDecimal poPrice;
    @Excel(name = "库存剩余")
    @ApiModelProperty("库存剩余")
    //库存剩余
    private BigDecimal poPriceRemaining;

    /** 物品名称 */
    @Excel(name = "物品名称")
    @ApiModelProperty("物品id")
    private String psGoodsId;
    @Excel(name = "出库创建人")
    @ApiModelProperty("出库创建人")
    private String createByName;

    /** 删除标志 0存在 2删除 */
    private String delFlag;
    //物品标准id
    private String goodsTypeId;

    /** 物品类别 */
    @Excel(name = "物品类别")
    private String goodsType;
    /** 送货日期 */
    @Excel(name = "送货日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
        @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date poDeliveryDate;

    @Excel(name = "规格")
    private String pstSpecification;
}
